home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple Reference & Presen…tion Library 4 (Reseller)
/
Apple Ref. & Pres. Lib.v4.0.iso
/
4-Demos
/
Third Party Demos
/
Information Management
/
Wingz
/
SDScript
/
Script05
(
.txt
)
< prev
next >
Wrap
Wingz Script
|
1989-06-10
|
11KB
|
355 lines
WNGZWZSC01b1R
Demo05
ManyFunctions
Business Functions:
Business
"BONDPRICE(yld,value,rate,ytm,pmts)
"BONDYTM(price,value,rate,ytm,pmts)
CTERM(int,fv,pv)
DDB(cost,salvage,life,period)
FV(pmt,int,term)
FVL(amount,int,term)
INTEREST(prin,pmt,term)
IRR(guess,range)
LOANTERM(prin,pmt,int)
NPV(int,range)
PMT(prin,int,term)
PRINCIPAL(pmt,int,term)
PV(pmt,int,term)
PVL(amount,int,term)
RATE(fv,pv,term)
SLN(cost,salvage,life)
SYD(cost,salvage,life,period)
TERM(pmt,int,fv)
Time/Date Functions:
Time/Date
ADATE(datenumber,picture)
ADDDAYS(datenumber,days)
ADDHOURS(datenumber,hours)
ADDMINUTES(datenumber,minutes)
ADDMONTHS(datenumber,months)
ADDSECONDS(datenumber,seconds)
ADDYEARS(datenumber,years)
ATIME(datenumber,picture)
CMONTH(month)
CWEEKDAY(weekday)
DATE(year,month,day)
DATEVALUE(datestring)
DAY(datenumber)
DAYNAME(datenumber)
HOUR(datenumber)
MINUTE(datenumber)
MONTH(datenumber)
MONTHNAME(datenumber)
NOW()
SECOND(datenumber)
TIME(hour,minute,second)
TIMEVALUE(timestring)
YEAR(datenumber)
Logical Functions:
Logical
FALSE()
IF(condition,x,y)
ISBLANK(cell)
ISERR(x)
ISNA(x)
ISNUMBER(x)
ISRANGE(x)
ISSTRING(x)
TRUE()
Statistical Functions
Statistical
AVG(itemlist)
COUNT(itemlist)
MAX(itemlist)
MIN(itemlist)
STD(itemlist)
STDEV(itemlist)
SUM(itemlist)
SUMSQ(itemlist)
VAR(itemlist)
VARIANCE(itemlist)
Database Functions:
Database
DAVG(input,offset,criteria)
DCOUNT(input,offset,criteria)
DMAX(input,offset,criteria)
DMIN(input,offset,criteria)
DSTD(input,offset,criteria)
DSTDEV(input,offset,criteria)
DSUM(input,offset,criteria)
DSUMSQ(input,offset,criteria)
DVAR(input,offset,criteria)
DVARIANCE(input,offset,criteria)
Text Functions:
CHAR(x)
CODE(text)
COLLATE(text1,text2)
CONTAINS(text,searchtext)
CURRENCY(x)
EXACT(text1,text2)
FIND(searchtext,text,start)
LEFT(text,n)
LENGTH(text)
LOWER(text)
MATCH(text,searchtext,start)
MID(text,start,n)
N(range)
NFORMAT(x,format)
PROPER(text)
REPEAT(text,n)
REPLACE(text,start,n,newtext)
RIGHT(text,n)
S(range)
STR(x)
STRING(x,n)
TRIM(text)
UPPER(text)
VALUE(text)
Spreadsheet Functions:
Spreadsheet
CELL()
CELLTEXT(cell)
CHOOSE(n,itemlist)
COL()
COLOF(range)
COLS(range)
ERR()
HLOOKUP(x,range,row)
INDEX(range,column,row)
INDIRECT(text)
MAKECELL(column,row)
$MAKERANGE(column1,row1,column2,row2)
RANGE(text)
ROW()
ROWOF(range)
ROWS(range)
VLOOKUP(x,range,column)
Numeric Functions:
Numeric
ABS(x)
ACOS(x)
ACOSH(x)
ASIN(x)
ASINH(x)
ATAN(x)
ATAN2(x,y)
ATANH(x)
COS(x)
COSH(x)
DEGREES(radians)
EXP(x)
EXPONENTIAL(x)
FACTORIAL(x)
GOAL(initial,result,formula)
GUESS()
INT(x)
LN(x)
LOG(x)
LOGN(x,logbase)
MOD(x,y)
NORMAL(x)
RADIANS(degrees)
RAND()
ROUND(x,n)
SIGN(x)
SIN(x)
SINH(x)
SQRT(x)
TAN(x)
TANH(x)
UNIFORM(x)
SDOpen
DoSound
Segwaycall sd:SDOpen("Demo05",1)
call sd:DoSound("ManyFunctions")
wait for (sd:Segway * 1) seconds
hide fields
put "Business Functions:" into b1
call sd:DoSound("Business")
put "BONDPRICE(yld,value,rate,ytm,pmts)" into b3
put "BONDYTM(price,value,rate,ytm,pmts)" into b4
put "CTERM(int,fv,pv)" into b5
put "DDB(cost,salvage,life,period)" into b6
put "FV(pmt,int,term)" into b7
put "FVL(amount,int,term)" into b8
put "INTEREST(prin,pmt,term)" into b9
put "IRR(guess,range)" into b10
put "LOANTERM(prin,pmt,int)" into b11
put "NPV(int,range)" into b12
put "PMT(prin,int,term)" into b13
put "PRINCIPAL(pmt,int,term)" into b14
put "PV(pmt,int,term)" into b15
put "PVL(amount,int,term)" into b16
put "RATE(fv,pv,term)" into b17
put "SLN(cost,salvage,life)" into b18
put "SYD(cost,salvage,life,period)" into b19
put "TERM(pmt,int,fv)" into b20
wait for (sd:Segway * 2) seconds
put " " into b1
put " " into b3..b20
put "Time/Date Functions:" into b1
call sd:DoSound("Time/Date")
put "ADATE(datenumber,picture)" into b3
put "ADDDAYS(datenumber,days)" into b4
put "ADDHOURS(datenumber,hours)" into b5
put "ADDMINUTES(datenumber,minutes)" into b6
put "ADDMONTHS(datenumber,months)" into b7
put "ADDSECONDS(datenumber,seconds)" into b8
put "ADDYEARS(datenumber,years)" into b9
put "ATIME(datenumber,picture)" into b10
put "CMONTH(month)" into b11
put "CWEEKDAY(weekday)" into b12
put "DATE(year,month,day)" into b13
put "DATEVALUE(datestring)" into b14
put "DAY(datenumber)" into b15
put "DAYNAME(datenumber)" into b16
put "HOUR(datenumber)" into b17
put "MINUTE(datenumber)" into b18
put "MONTH(datenumber)" into b19
put "MONTHNAME(datenumber)" into b20
put "NOW()" into c3
put "SECOND(datenumber)" into c4
put "TIME(hour,minute,second)" into c5
put "TIMEVALUE(timestring)" into c6
put "YEAR(datenumber)" into c7
wait for (sd:Segway * 2) seconds
put " " into b1
put " " into b3..c21
put "Logical Functions:" into b1
call sd:DoSound("Logical")
put "FALSE()" into b3
put "IF(condition,x,y)" into b4
put "ISBLANK(cell)" into b5
put "ISERR(x)" into b6
put "ISNA(x)" into b7
put "ISNUMBER(x)" into b8
put "ISRANGE(x)" into b9
put "ISSTRING(x)" into b10
put "TRUE()" into b11
wait for (sd:Segway * 1) seconds
put " " into b1
put " " into b3..c21
put "Statistical Functions" into b1
call sd:DoSound("Statistical")
put "AVG(itemlist)" into b3
put "COUNT(itemlist)" into b4
put "MAX(itemlist)" into b5
put "MIN(itemlist)" into b6
put "STD(itemlist)" into b7
put "STDEV(itemlist)" into b8
put "SUM(itemlist)" into b9
put "SUMSQ(itemlist)" into b10
put "VAR(itemlist)" into b11
put "VARIANCE(itemlist)" into b12
wait for (sd:Segway * 1) seconds
put " " into b1
put " " into b3..c21
put "Database Functions:" into b1
call sd:DoSound("Database")
put "DAVG(input,offset,criteria)" into b3
put "DCOUNT(input,offset,criteria)" into b4
put "DMAX(input,offset,criteria)" into b5
put "DMIN(input,offset,criteria)" into b6
put "DSTD(input,offset,criteria)" into b7
put "DSTDEV(input,offset,criteria)" into b8
put "DSUM(input,offset,criteria)" into b9
put "DSUMSQ(input,offset,criteria)" into b10
put "DVAR(input,offset,criteria)" into b11
put "DVARIANCE(input,offset,criteria)" into b12
wait for (sd:Segway * 1) seconds
put " " into b1
put " " into b3..c21
put "Text Functions:" into b1
call sd:DoSound("Text")
put "CHAR(x)" into b3
put "CODE(text)" into b4
put "COLLATE(text1,text2)" into b5
put "CONTAINS(text,searchtext)" into b6
put "CURRENCY(x)" into b7
put "EXACT(text1,text2)" into b8
put "FIND(searchtext,text,start)" into b9
put "LEFT(text,n)" into b10
put "LENGTH(text)" into b11
put "LOWER(text)" into b12
put "MATCH(text,searchtext,start)" into b13
put "MID(text,start,n)" into b14
put "N(range)" into b15
put "NFORMAT(x,format)" into b16
put "PROPER(text)" into b17
put "REPEAT(text,n)" into b18
put "REPLACE(text,start,n,newtext)" into b19
put "RIGHT(text,n)" into b20
put "S(range)" into c3
put "STR(x)" into c4
put "STRING(x,n)" into c5
put "TRIM(text)" into c6
put "UPPER(text)" into c7
put "VALUE(text)" into c8
wait for (sd:Segway * 2) seconds
put " " into b1
put " " into b3..c21
put "Spreadsheet Functions:" into b1
call sd:DoSound("Spreadsheet")
put "CELL()" into b3
put "CELLTEXT(cell)" into b4
put "CHOOSE(n,itemlist)" into b5
put "COL()" into b6
put "COLOF(range)" into b7
put "COLS(range)" into b8
put "ERR()" into b9
put "HLOOKUP(x,range,row)" into b10
put "INDEX(range,column,row)" into b11
put "INDIRECT(text)" into b12
put "MAKECELL(column,row)" into b13
put "MAKERANGE(column1,row1,column2,row2)" into b14
put "NA()" into b15
put "RANGE(text)" into b16
put "ROW()" into b17
put "ROWOF(range)" into b18
put "ROWS(range)" into b19
put "VLOOKUP(x,range,column)" into b20
wait for (sd:Segway * 1.5) seconds
put " " into b1
put " " into b3..c21
put "Numeric Functions:" into b1
call sd:DoSound("Numeric")
put "ABS(x)" into b3
put "ACOS(x)" into b4
put "ACOSH(x)" into b5
put "ASIN(x)" into b6
put "ASINH(x)" into b7
put "ATAN(x)" into b8
put "ATAN2(x,y)" into b9
put "ATANH(x)" into b10
put "COS(x)" into b11
put "COSH(x)" into b12
put "DEGREES(radians)" into b13
put "E()" into b14
put "EXP(x)" into b15
put "EXPONENTIAL(x)" into b16
put "FACTORIAL(x)" into b17
put "GOAL(initial,result,formula)" into b18
put "GUESS()" into b19
put "INT(x)" into b20
put "LN(x)" into c3
put "LOG(x)" into c4
put "LOGN(x,logbase)" into c5
put "MOD(x,y)" into c6
put "NORMAL(x)" into c7
put "PI()" into c8
put "RADIANS(degrees)" into c9
put "RAND()" into c10
put "ROUND(x,n)" into c11
put "SIGN(x)" into c12
put "SIN(x)" into c13
put "SINH(x)" into c14
put "SQRT(x)" into c15
put "TAN(x)" into c16
put "TANH(x)" into c17
put "UNIFORM(x)" into c18
wait for (sd:Segway * 2) seconds
put " " into b1
put " " into b3..c21
close now